using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.Reporting.WinForms;
using ComponentFactory.Krypton.Toolkit;
using System.IO;

namespace XQMSTicket.Reports
{
    public partial class rptStrukQueue : ComponentFactory.Krypton.Toolkit.KryptonForm
    {
        private string _QueueNo;
        public string QueueNo
        {
            get
            {
                return _QueueNo;
            }
            set
            {
                _QueueNo = value;
            }
        }

        private string _QueueCat;
        public string QueueCat
        {
            get
            {
                return _QueueCat;
            }
            set
            {
                _QueueCat = value;
            }
        }

        public rptStrukQueue()
        {
            InitializeComponent();
        }

        private void rptStrukQueue_Load(object sender, EventArgs e)
        {
            this.rvStruk.ProcessingMode = ProcessingMode.Local;
            this.rvStruk.LocalReport.ReportPath = Environment.CurrentDirectory + @"..\..\..\Reports\StrukQueue.rdlc";

            ReportParameter[] rptParam = new ReportParameter[] { 
                new ReportParameter("QueueNo", QueueNo, false),
                new ReportParameter("QueueCategory", QueueCat, false)
            };

            this.rvStruk.LocalReport.SetParameters(rptParam);

            this.rvStruk.RefreshReport();
        }
    }
}